package com.xbongbong.pro.score.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;


/**
 * 重新计算消息封装
 */
@Data
public class ScoreRabbitMqDTO implements Serializable{
    private static final long serialVersionUID = 3528955007420505116L;

    @NotNull(message="业务类型ID不能为空")
    private Integer businessType;

    @NotBlank(message="公司ID不能为空")
    private String corpid;

    /**
     * 批量数据实体(重新计算时，数据id在这里组装)
     */
    @Size(max = 2000, message = "数据总量不能超过2000条")
    private List<Long> dataIdList;
//    /**
//     * 单条数据实体（业务编辑，新增时，用于封装单个消息实体）
//     */
//    private PaasFormDataEntityExt paasFormDataEntityExt;

    public ScoreRabbitMqDTO(){

    }

    public ScoreRabbitMqDTO(Integer businessType, String corpid, List<Long> dataIdList) {
        this.businessType = businessType;
        this.corpid = corpid;
        this.dataIdList = dataIdList;
    }
}
